Skip to content

Commit

Permalink
change toast message
Browse files Browse the repository at this point in the history
  • Loading branch information
VedantBhawsar committed Aug 24, 2024
1 parent 2a4cbbb commit b6f40e5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/modals/apikey-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@ const ApiKeyModal = () => {
}

const handleSave = () => {
// Check API key is not null
// Check API key is not null
if (!apiKey) {
toast({
title: "Something went wrong",
description: "Please Enter API Key.",
title: "API Key Required",
description: "Please enter a valid API key to continue.",
variant: "destructive",
});
return;
}

// Save API key to cookies
document.cookie = serialize('openaiApiKey', apiKey, { path: '/' });
toast({
Expand Down

0 comments on commit b6f40e5

Please sign in to comment.