MCPcopy Create free account
hub / github.com/codealong-dev/ride-sharing / resetTripStatus

Function resetTripStatus

web/src/hooks/useRiderStreamConnection.ts:78–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76 }, [userID]);
77
78 const resetTripStatus = () => {
79 setTripStatus(null);
80 setPaymentSession(null);
81 }
82
83 return { drivers, assignedDriver, error, tripStatus, paymentSession, resetTripStatus };
84}

Callers 2

handleCancelTripFunction · 0.50
handleDeclineTripFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected