fix: prevent crash from insane height param
Build and Deploy / build-and-deploy (push) Successful in 1m5s
Build and Deploy / build-and-deploy (push) Successful in 1m5s
This commit is contained in:
@@ -375,8 +375,10 @@ export function card(app: App) {
|
||||
: mockData,
|
||||
]);
|
||||
|
||||
const height =
|
||||
typeof w === "number" ? w / (1218 / 508) : heightRaw;
|
||||
const height = Math.min(
|
||||
typeof w === "number" ? w / (1218 / 508) : heightRaw,
|
||||
2048,
|
||||
);
|
||||
|
||||
const cacheKey = hash(
|
||||
JSON.stringify({
|
||||
@@ -660,8 +662,10 @@ export function card(app: App) {
|
||||
profilePlayerInfo(avatar.owner, avatar),
|
||||
]);
|
||||
|
||||
const height =
|
||||
typeof w === "number" ? w / (1218 / 508) : heightRaw;
|
||||
const height = Math.min(
|
||||
typeof w === "number" ? w / (1218 / 508) : heightRaw,
|
||||
2048,
|
||||
);
|
||||
|
||||
const cacheKey = hash(
|
||||
JSON.stringify({
|
||||
|
||||
Reference in New Issue
Block a user