Skip to content

Commit 30bf9a2

Browse files
committed
fix: make sure amount values are stored
1 parent 28ce5f8 commit 30bf9a2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libs/web/role/ui/src/lib/role-condition-ui-create-wizard.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export function RoleConditionUiCreateWizard(props: { role: Role; community: Comm
4444
...base,
4545
tokenId: networkToken?.id,
4646
amount: amount ?? '0',
47+
amountMax: amountMax ?? '0',
4748
config: {},
4849
filters: {},
4950
}
@@ -53,14 +54,15 @@ export function RoleConditionUiCreateWizard(props: { role: Role; community: Comm
5354
...base,
5455
tokenId: networkToken?.id,
5556
amount: amount ?? '0',
57+
amountMax: amountMax ?? '0',
5658
config: {},
5759
filters: {},
5860
}
5961
}
6062
return {
6163
...base,
6264
}
63-
}, [props.role.id, networkTokenType, networkToken])
65+
}, [props.role.id, networkTokenType, networkToken, amount, amountMax])
6466

6567
async function addCondition(type: NetworkTokenType, token: NetworkToken) {
6668
createRoleCondition({ ...config, type, tokenId: token.id })

0 commit comments

Comments
 (0)