Skip to content

Commit

Permalink
Merge pull request #6358 from blockchain/feat/BCPAY-882-prove-fix-typing
Browse files Browse the repository at this point in the history
feat(prove): fixed typing
  • Loading branch information
milan-bc committed Apr 17, 2024
2 parents 6d8955a + 75ceec7 commit 26b5755
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const ContentWrapper = styled.div`
const Prove: React.FC<ProveProps> = ({ location: { pathname, search } }) => {
const isExpired = pathname.includes('/expired')
const product = new URLSearchParams(search).get('product')
const isBCPay = product && product === 'bcpay'
const isBCPay = !!product && product === 'bcpay'

const [proveStatus, setProveStatus] = useState<ProveStates>(isExpired ? 'error' : 'loading')

Expand Down

0 comments on commit 26b5755

Please sign in to comment.