Skip to content

Commit

Permalink
Staging (#259)
Browse files Browse the repository at this point in the history
hot fix for Payment
  • Loading branch information
r0wdy1 authored Feb 1, 2024
1 parent 6f0d7dd commit 574ff2b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/pages/Payment/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,7 @@ const Payment = ({ pool }) => {
const { supportId } = useContext(SupportIdContext);
const history = useHistory();
const params = useParams();
const addressPrefix = params.address.split(':')[0];
const pool = Object.values(pools).find(pool => pool.addressPrefix === addressPrefix);
if (!pool.paymentContractAddress) {
history.push('/');
}
const currency = ['USDC.e', 'USDC', 'BOB'].includes(pool.tokenSymbol) ? 'USD' : pool.tokenSymbol;

const { address: account } = useContext(WalletContext);
const [displayedAmount, setDisplayedAmount] = useState('');
Expand Down

0 comments on commit 574ff2b

Please sign in to comment.