diff --git a/packages/payment-proxy-client/src/App.tsx b/packages/payment-proxy-client/src/App.tsx index 0de5eb861..5ee7b9162 100644 --- a/packages/payment-proxy-client/src/App.tsx +++ b/packages/payment-proxy-client/src/App.tsx @@ -143,7 +143,10 @@ export default function App() { setPaymentChannelId(result.ChannelId); - nitroClient.PaymentChannelUpdated(result.ChannelId, setPaymentChannelInfo); + nitroClient.onPaymentChannelUpdated( + result.ChannelId, + setPaymentChannelInfo + ); // It's possible the channel updated before we registered the handler above, so // query the channel once now to get the latest information: