fix some minor bugs

This commit is contained in:
Vendicated 2024-03-01 00:18:09 +01:00
parent da50c7a19b
commit 3ebde1aae8
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18
3 changed files with 5 additions and 4 deletions

View file

@ -428,10 +428,11 @@ function runTime(token: string) {
if (searchType === "findComponent") method = "find";
if (searchType === "findExportedComponent") method = "findByProps";
if (searchType === "waitFor" || searchType === "waitForComponent" || searchType === "waitForStore") {
if (searchType === "waitFor" || searchType === "waitForComponent") {
if (typeof args[0] === "string") method = "findByProps";
else method = "find";
}
if (searchType === "waitForStore") method = "findStore";
try {
let result: any;