From 4b5c37af88629281844b1a2fc6b9bc64b73da0af Mon Sep 17 00:00:00 2001 From: Mykola Mokhnach Date: Thu, 23 Nov 2023 09:56:47 +0100 Subject: [PATCH] Fix arrays comparison --- lib/simulator-xcode-9.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/simulator-xcode-9.js b/lib/simulator-xcode-9.js index 0beb159..d3dbb7a 100644 --- a/lib/simulator-xcode-9.js +++ b/lib/simulator-xcode-9.js @@ -595,7 +595,7 @@ class SimulatorXcode9 extends SimulatorXcode8 { } if (globalPrefs.AppleLanguages) { - if (previousAppleLanguages && previousAppleLanguages === globalPrefs.AppleLanguages) { + if (_.isEqual(previousAppleLanguages, globalPrefs.AppleLanguages)) { log.info( `The 'AppleLanguages' preference is already set to '${globalPrefs.AppleLanguages}'. ` + `Skipping services reset`