refactor(routes): move shared pages to global scope
This commit is contained in:
@@ -26,7 +26,13 @@ export function parseSubscriptionReturnTo(
|
||||
value: PaymentSearchParamValue,
|
||||
): AppSubscriptionReturnTo {
|
||||
const returnTo = getFirstPaymentSearchParam(value);
|
||||
if (returnTo === "chat" || returnTo === "private-room") return returnTo;
|
||||
if (
|
||||
returnTo === "chat" ||
|
||||
returnTo === "private-room" ||
|
||||
returnTo === "sidebar"
|
||||
) {
|
||||
return returnTo;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user