diff --git a/src/common/store/settings.ts b/src/common/store/settings.ts index c73ef7c..debbb62 100644 --- a/src/common/store/settings.ts +++ b/src/common/store/settings.ts @@ -78,19 +78,17 @@ export const saveSetting = async (newSettings: Partial) => { } const patchCustomInstructions = (setting: Settings) => { - if (setting.customInstructions) { - setting.customInstructions = - setting.customInstructions?.map((instruction) => { - if (typeof instruction === 'string') { - return { - id: uniqueId(), - name: instruction, - instruction: instruction, - icon: '😄', - } + setting.customInstructions = + setting.customInstructions?.map((instruction) => { + if (typeof instruction === 'string') { + return { + id: uniqueId(), + name: instruction, + instruction: instruction, + icon: '😄', } + } - return instruction - }) || [] - } + return instruction + }) || [] }