Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const useLinkOperations = (
});
} catch (error: any) {
setToast({
message: error?.data?.error ?? "The link could not be created",
message: error?.data?.url?.error ?? "The link could not be created",
type: TOAST_TYPE.ERROR,
title: "Link not created",
});
Expand All @@ -45,9 +45,9 @@ export const useLinkOperations = (
type: TOAST_TYPE.SUCCESS,
title: "Link updated",
});
} catch (error) {
} catch (error: any) {
setToast({
message: "The link could not be updated",
message: error?.data?.url?.error ?? "The link could not be updated",
type: TOAST_TYPE.ERROR,
title: "Link not updated",
});
Expand Down
Loading