Skip to content

Started with crash error #5

@ibagwai9

Description

@ibagwai9

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions