fix signin signout and apply the new style
This commit is contained in:
@@ -50,7 +50,7 @@ export default function RenterSavedCompaniesPage() {
|
||||
.then((profile) => setCompanies(profile.savedCompanies ?? []))
|
||||
.catch((err) => {
|
||||
if (err instanceof RenterAuthError) {
|
||||
router.replace('/renter/sign-in')
|
||||
router.replace('/')
|
||||
return
|
||||
}
|
||||
setErrorMsg(err instanceof Error ? err.message : dict.load)
|
||||
|
||||
Reference in New Issue
Block a user