Skip to content

Commit

Permalink
fix token ticker check
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdan-rosianu committed Apr 1, 2024
1 parent b107ace commit 6ce6393
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion action/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -188167,7 +188167,7 @@ const robot = (app) => {
return;
}
const tokensDirectories = (response.data && response.data.length) ? response.data : [];
const subdirectoriesWithSameTicker = tokensDirectories.filter((content) => content?.type === "dir" && content?.name?.startsWith(tokenTicker));
const subdirectoriesWithSameTicker = tokensDirectories.filter((content) => content?.type === "dir" && content?.name?.startsWith(`${tokenTicker}-`));
if (subdirectoriesWithSameTicker.length) {
const existingToken = subdirectoriesWithSameTicker[0].name;
if (existingToken === tokenName) {
Expand Down
2 changes: 1 addition & 1 deletion src/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ export const robot = (app: Probot) => {
}
const tokensDirectories = (response.data && (response.data as any[]).length) ? response.data as any[] : [];
const subdirectoriesWithSameTicker = tokensDirectories.filter(
(content) => content?.type === "dir" && content?.name?.startsWith(tokenTicker),
(content) => content?.type === "dir" && content?.name?.startsWith(`${tokenTicker}-`),
);

if (subdirectoriesWithSameTicker.length) {
Expand Down

0 comments on commit 6ce6393

Please sign in to comment.