audioplayer property called "currentTime" returns a number value during Preview, but an object during live

Problem its causing: I have an A/B application on my website that toggles between two players to A/B the audio. Its supposed to toggle at the same playback time and it does this in preview mode, but live it starts the song over whenever I toggle between the two players.
I noticed this after a wix update a couple months back. Does anybody have any thoughts on how to fix this?

let cats =[];
let chk = false;
$w.onReady(function () {
 if(chk){return;}
    chk = true;
    $w('#audioPlayer2').hide();
    cats = wixData.query("Choices").find().then((cat)=>{
 let dbCats =[];
        cats = cat.items;
 for(let i=0;i<cats.length;i++){
            dbCats.push({
                label: cats[i].name +" - "+cats[i].artist,
                value: i +"",
            });
        }
        $w("#cat").options = dbCats;
        $w('#cat').selectedIndex = 0;

        $w('#mixer').checked = false;
        $w('#text22').html = "<span style ='font-size:18px;color:red'>Raw Tracks</span]>";
        $w('#text23').html = "<span style ='font-size:18px;color:#d1d1d1'>Mixed Tracks</span]>";
 let i = 0;
        $w('#audioPlayer1').src = cats[i].before;
        $w('#audioPlayer1').artistName = cats[i].artist;
        $w('#audioPlayer1').trackName = cats[i].name;
        $w('#audioPlayer1').coverImage = cats[i].image
        $w('#audioPlayer2').src = cats[i].after;
        $w('#audioPlayer2').artistName = cats[i].artist;
        $w('#audioPlayer2').trackName = cats[i].name;
        $w('#audioPlayer2').coverImage = cats[i].image
        $w('#audioPlayer1').seek(0).then(()=>{
            $w('#audioPlayer2').seek(0).then(()=>{
            });
        });

    });
});

export function cat_change(event) {

////Song selection change tracking////
    wixWindow.trackEvent("CustomEvent", {
 "event": "Song Selection Change",
 "eventCategory": "Media Player",
 "eventAction": "Click - New Song Selection",
 "eventLabel": "New Song Selected"
  } );
//////

 if($w('#audioPlayer1').hidden){
        $w('#audioPlayer2').hide().then(()=>{
            $w('#audioPlayer1').show();
        });
        $w('#mixer').checked = false;
        $w('#text22').html = "<span style ='font-size:18px;color:red'>Raw Tracks</span]>";
        $w('#text23').html = "<span style ='font-size:18px;color:#d1d1d1'>Mixed Tracks</span]>";
    }
 let i = +($w('#cat').value);
    $w('#audioPlayer1').src = cats[i].before;
    $w('#audioPlayer1').artistName = cats[i].artist;
    $w('#audioPlayer1').trackName = cats[i].name;
    $w('#audioPlayer1').coverImage = cats[i].image
    $w('#audioPlayer2').src = cats[i].after;
    $w('#audioPlayer2').artistName = cats[i].artist;
    $w('#audioPlayer2').trackName = cats[i].name;
    $w('#audioPlayer2').coverImage = cats[i].image
    $w('#audioPlayer1').seek(0).then(()=>{
        $w('#audioPlayer2').seek(0).then(()=>{
        });
    });

}

export function mixer_change(event) {
 if($w('#mixer').checked){
        $w('#text22').html = "<span style ='font-size:18px;color:#d1d1d1'>Raw Tracks</span]>";
        $w('#text23').html = "<span style ='font-size:18px;color:#00ff00'>Mixed Tracks</span]>";
 let sec = $w('#audioPlayer1').currentTime;
        console.log(sec);
        console.log(sec.toString());
 
 if(!($w('#audioPlayer1').isPlaying)){
            $w('#audioPlayer1').hide().then(()=>{
                $w('#audioPlayer2').show().then(()=>{
                    $w('#audioPlayer2').play().then(()=>{
                        $w('#audioPlayer2').seek(sec).then(()=>{
                        });
                    });
                });
            });
        }
 else{
            $w('#audioPlayer1').stop().then(()=>{
                $w('#audioPlayer1').hide().then(()=>{
                    $w('#audioPlayer2').show().then(()=>{
                        $w('#audioPlayer2').play().then(()=>{
                            $w('#audioPlayer2').seek(sec).then(()=>{
                        });
                        });
                    });
                });
            });
        }
    }
 else{
        $w('#text22').html = "<span style ='font-size:18px;color:red'>Raw Tracks</span]>";
        $w('#text23').html = "<span style ='font-size:18px;color:#d1d1d1'>Mixed Tracks</span]>";
 let sec = $w('#audioPlayer2').currentTime;
 if(!($w('#audioPlayer2').isPlaying)){
            $w('#audioPlayer2').hide().then(()=>{
                $w('#audioPlayer1').show().then(()=>{
                    $w('#audioPlayer1').play().then(()=>{
                        $w('#audioPlayer1').seek(sec).then(()=>{
                        });
                    });
                });
            });
        }
        $w('#audioPlayer2').stop().then(()=>{
            $w('#audioPlayer2').hide().then(()=>{
                $w('#audioPlayer1').show().then(()=>{
                    $w('#audioPlayer1').play().then(()=>{
                        $w('#audioPlayer1').seek(sec).then(()=>{
                        });
                    });
                });
            });
        });
    }
}

From the log:

jsonPayload": {

“message”:“Wix code SDK error: The seek parameter that is passed to the seek method cannot be set to the value [object Object]. It must be of type number. at console.error (https://static.parastorage.com/services/wix-code-viewer-app/1.932.0/app.js:25:17525) at r (https://static.parastorage.com/services/editor-elements/dist/componentSdks.35cab844.bundle.min.js:1:17898) at g (https://static.parastorage.com/services/editor-elements/dist/componentSdks.35cab844.bundle.min.js:1:19935) at https://static.parastorage.com/services/editor-elements/dist/componentSdks.35cab844.bundle.min.js:1:20893 at array (https://static.parastorage.com/services/editor-elements/dist/componentSdks.35cab844.bundle.min.js:1:21002) at g (https://static.parastorage.com/services/editor-elements/dist/componentSdks.35cab844.bundle.min.js:1:19861) at https://static.parastorage.com/services/editor-elements/dist/componentSdks.35cab844.bundle.min.js:1:22908 at Object.keys.reduce.c.value.c.value.s.value [as seek] (https://static.parastorage.com/services/editor-elements/dist/componentSdks.35cab844.bundle.min.js:1:23679) at https://d44d370f-3d21-4378-b221-1adb0a9a1586.static.pub.wix-code.com/static/v2/c78e79ba-c435-410e-9fd1-b7cf7b236ee3/d44d370f-3d21-4378-b221-1adb0a9a1586/pages/yzkkh.js?use_core_ng=true:1:4485

It’s a bug on Wix side due to the new performance rollout (Thunderbolt).

Hi Jonathan,
Wow, great music! As J.D. said, this is a bug due to our performance rollout. The problem should now be resolved. Thanks!

OMG THANK YOU SO MUCH! I’ve been stressed out about this for weeks.

Thanks to our awesome Velo Master @jonatandor35 for catching it!