Skip to content

Commit

Permalink
Fix where the fee comes from
Browse files Browse the repository at this point in the history
  • Loading branch information
jessepinho committed Jan 26, 2024
1 parent dcaaeb8 commit c253544
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/webapp/src/state/send.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,11 @@ export const createSendSlice = (): SliceCreator<SendSlice> => (set, get) => {
}

const plan = await getPlan({ amount, recipient, selection, memo });
if (!plan?.fee?.amount) return;
const fee = plan?.transactionParameters?.fee;
if (!fee?.amount) return;

set(state => {
state.send.fee = plan.fee;
state.send.fee = fee;
});
},
sendTx: async toastFn => {
Expand Down

0 comments on commit c253544

Please sign in to comment.