Skip to content

Commit

Permalink
fixing modify stream balance
Browse files Browse the repository at this point in the history
  • Loading branch information
kkatusic committed Nov 28, 2024
1 parent 0ce1b94 commit 664c79a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ export const RecurringDonationCard = () => {
(perMonthAmount * BigInt(100 - donationToGiveth)) / 100n;
const givethPerMonth = perMonthAmount - projectPerMonth;
const tokenBalance = balance?.value;
const tokenStream = tokenStreams[selectedRecurringToken?.token.id || ''];
const tokenStream =
tokenStreams[selectedRecurringToken?.token.id.toLowerCase() || ''];

const anchorContractAddress = useMemo(
() => findAnchorContractAddress(project.anchorContracts),
Expand Down Expand Up @@ -776,7 +777,9 @@ export const RecurringDonationCard = () => {
{showTopUpModal && selectedRecurringToken && (
<ModifySuperTokenModal
tokenStreams={
tokenStreams[selectedRecurringToken?.token.id || '']
tokenStreams[
selectedRecurringToken?.token.id.toLowerCase() || ''
]
}
setShowModal={setShowTopUpModal}
selectedToken={selectedRecurringToken?.token!}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ const SelectTokenInnerModal: FC<ISelectTokenModalProps> = ({
return token ? (
<StreamInfo
key={tokenId}
stream={tokenStreams[tokenId]}
stream={tokenStreams[tokenId.toLowerCase()]}
balance={balances[token.symbol]}
disable={
!balances[token.symbol] ||
Expand Down

0 comments on commit 664c79a

Please sign in to comment.