As the Gulf crisis enters its third week, the decision to cut or downgrade diplomatic ties with Qatar by nine African countries could have a long-term impact on the nationals of those countries, analysts warned.

“This is not good for Africa. This is rush decision-making and taking sides in a crisis that the leaders have no clear grasp of is dangerous and will scare investors away,” Adama Gaye, a Senegalese foreign policy expert told Al Jazeera.

On June 5, Saudi Arabia, the United Arab Emirates, Bahrain and Egypt announced that they were cutting ties with Qatar and imposing land, sea and air blockades.

The Arab countries accuse Doha of supporting “terrorism” and “extremist groups” – charges which Qatar strongly denies.

Soon after the announcement, some Gulf envoys and ministers started shuttle diplomacy, travelling between countries trying to convince allies to cut ties with Qatar.

Two days after the Arab countries cut ties with Qatar, Senegal said it was recalling its ambassador to Qatar and expressed “active solidarity” with Riyadh.

Anaylsts say Dakar has likely automatically accepted the Saudi allegations against Qatar without questioning them.

“Security and tackling violent extremism are real issues in several African countries but there are strong economic factors at play here,” Africa analyst Antony Goldman told Al Jazeera by phone from the Ghanaian capital, Accra. “Saudi Arabia has invested a lot of money recently in Africa and this gives it a lot of weight on the continent,” Goldman added.

This is not the first time Senegal has been on the side of Saudi Arabia. Dakar sent 2,100 soldiers in 2015 to Yemen as part of the Saudi-led coalition fighting Houthis rebels. Dakar said at the time that it sent its troops “to protect and secure the holy sites of Islam, Medina and Mecca”.