Skip to content

Open source personal finance application

fix(trnForm): replace '888' placeholder with '0' to fix infinite submit loop

Ilya Komichev918df1a5071a
diff --git a/app/components/trnForm/useTrnsFormStore.ts b/app/components/trnForm/useTrnsFormStore.ts
index 695cbd9a..897fb4ac 100644
--- a/app/components/trnForm/useTrnsFormStore.ts
+++ b/app/components/trnForm/useTrnsFormStore.ts
@@ -220,8 +220,7 @@ export const useTrnsFormStore = defineStore('trnForm', () => {
return
}
- // Clear to placeholder
- values.amountRaw[0] = '888'
+ values.amountRaw[0] = formatInput(0)
}
function trnFormEdit(trnId: TrnId) {