Fix updated words losing createdOn

This commit is contained in:
Robbie Antenesse 2019-05-22 14:14:10 -06:00
parent cfb4563909
commit 9f80071b1c
1 changed files with 1 additions and 0 deletions

View File

@ -107,6 +107,7 @@ export function updateWord(word, wordId) {
console.error('Could not find word to update');
} else {
word.lastUpdated = getTimestampInSeconds();
word.createdOn = window.currentDictionary.words[wordIndex].createdOn;
window.currentDictionary.words[wordIndex] = word;
addMessage('Word Updated Successfully');
sortWords(true);