#634 fix amount currency rendering for completed forms

This commit is contained in:
Denys Vuika
2016-10-11 10:26:12 +01:00
parent 9a1f646cca
commit 1394a493f3

View File

@@ -93,6 +93,12 @@ export class DisplayValueWidget extends WidgetComponent implements OnInit {
}
}
break;
case FormFieldTypes.AMOUNT:
if (this.value) {
let currency = this.field.currency || '$';
this.value = `${currency} ${this.field.value}`;
}
break;
default:
this.value = this.field.value;
break;