Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Started with crash error #5

Open
ibagwai9 opened this issue Jul 29, 2023 · 0 comments
Open

Started with crash error #5

ibagwai9 opened this issue Jul 29, 2023 · 0 comments

Comments

@ibagwai9
Copy link

TypeError: Cannot read properties of undefined (reading 'toLowerCase')
useScript
C:/Users/ishaq/Documents/apps/src/libs/useScript.ts:4
1 | import { useState, useEffect } from 'react'
2 | import { IResponse } from './interface'
3 | export default function useScript(mode: string): boolean[] {

4 | const src =
5 | mode.toLowerCase() === 'test'
6 | ? 'https://webpay-ui.k8.isw.la/inline-checkout.js'
7 | : 'https://newwebpay.interswitchng.com/inline-checkout.js'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant