From 955bb5c99d0b3a710bf2719a7380e8e1eebf4705 Mon Sep 17 00:00:00 2001 From: jamesgeorge007 Date: Mon, 3 Feb 2020 17:38:38 +0530 Subject: [PATCH] fix: account for letter casing while creating editing a collection --- store/postwoman.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store/postwoman.js b/store/postwoman.js index a44a07bc0..870958d96 100644 --- a/store/postwoman.js +++ b/store/postwoman.js @@ -133,7 +133,7 @@ export const mutations = { editCollection({ collections }, payload) { const { collection, collectionIndex } = payload; const { name } = collection; - const duplicateCollection = collections.some(item => item.name === name); + const duplicateCollection = collections.some(item => item.name.toLowerCase() === name.toLowerCase()); if (duplicateCollection) { this.$toast.info("Duplicate collection"); return;