Remove unused code

This commit is contained in:
koalasat
2025-07-25 18:19:05 +02:00
parent 8ae9165efa
commit 13fcc26ca3
4 changed files with 4 additions and 4 deletions

View File

@ -14,7 +14,7 @@ const Routes: React.FC = () => {
useEffect(() => {
if (window.AndroidDataRobosats && garage.currentSlot) {
const orderPath = window.AndroidDataRobosats.navigateToPage ?? '';
const [coordinator, orderId] = orderPath.replace('#', '/').split('/');
const [coordinator, orderId] = orderPath.split('/');
window.AndroidDataRobosats = undefined;
if (orderId && coordinator) {

View File

@ -55,7 +55,7 @@ const NotificationCard: React.FC<Props> = ({ event, robotHashId, coordinator, se
if (slot?.token) {
setShow(false);
garage.setCurrentSlot(slot.token);
navigateToPage(`order/${orderId.replace('#', '/')}`, navigate);
navigateToPage(`order/${orderId}`, navigate);
}
}
};

View File

@ -150,7 +150,7 @@ const NotificationsDrawer = ({
if (slot?.token) {
setShow(false);
garage.setCurrentSlot(slot.token);
navigateToPage(`order/${orderId.replace('#', '/')}`, navigate);
navigateToPage(`order/${orderId}`, navigate);
}
}
};

View File

@ -141,7 +141,7 @@ export const AppContextProvider = ({ children }: AppContextProviderProps): React
newPage,
navigate,
) => {
const pathPage: Page | string = newPage.replace('#', '/').split('/')[0];
const pathPage: Page | string = newPage.split('/')[0];
if (isPage(pathPage)) {
setPage(pathPage);
navigate(`/${newPage}`);