I get the error : - Unhandled Rejection (TypeError): Cannot read property 'id' of undefined in React Application
问题 My Payment.js :- import React, { useState, useEffect } from 'react' import "./Payment.css" import { useStateValue } from './StateProvider' import CheckoutProduct from './CheckoutProduct'; import { Link, useHistory } from 'react-router-dom'; import { CardElement,useElements, useStripe } from '@stripe/react-stripe-js'; import CurrencyFormat from 'react-currency-format'; import { getBasketTotal } from './reducer'; import axios from "./axios"; import {db} from "./firebase"; function Payment() {