Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update lib/js/src/manager/screen/_SoftButtonManagerBase.js
Co-authored-by: renonick87 <[email protected]>
  • Loading branch information
crokita and renonick87 authored Dec 16, 2020
commit cf0eed97e87a963fe15c575c23862f8d83204eb9
4 changes: 2 additions & 2 deletions lib/js/src/manager/screen/_SoftButtonManagerBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,8 @@ class _SoftButtonManagerBase extends _SubManagerBase {
}
if (initialState !== null && Array.isArray(softButtonObject.getStates())) {
for (const softButtonState of softButtonObject.getStates()) {
if (softButtonState !== null && softButtonState.getName() !== null &&
this._fileManager !== null && this._fileManager !== undefined &&
if (softButtonState !== null && softButtonState.getName() !== null &&
this._fileManager !== null && this._fileManager !== undefined &&
this._fileManager.fileNeedsUpload(softButtonState.getArtwork()) && this._softButtonImagesSupported()) {
if (softButtonState.getName() === initialState.getName()) {
initialStatesToBeUploaded.push(softButtonObject.getCurrentState().getArtwork());
Expand Down