i18n fixes.

This commit is contained in:
softsimon
2021-06-10 15:38:15 -05:00
parent 2475c67d5b
commit 8f74ef58f8
4 changed files with 434 additions and 102 deletions

View File

@@ -160,8 +160,9 @@ export class BisqTransactionsComponent implements OnInit {
return outputs.reduce((acc: number, output: BisqOutput) => acc + output.bsqAmount, 0);
}
getStringByTxType(id: string) {
return this.txTypeOptions.find((type) => type.id).name;
getStringByTxType(type: string) {
const id = this.txTypes.indexOf(type) + 1;
return this.txTypeOptions.find((type) => id === type.id).name;
}
trackByFn(index: number) {